sudo 您所在的位置:网站首页 dpkg frontend lock sudo

sudo

#sudo| 来源: 网络整理| 查看: 265

Open your terminal and type:

ps -aux | grep -iE "apt"

It will show the id of the process running apt. Kill it with:

sudo kill -9

You could also kill all processes using apt with:

sudo killall apt apt-get

If these commands don't work, you can also remove the files using rm:

sudo rm /var/lib/apt/lists/lock sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock*

NOTE: Be careful with those commands. You could possibly end up with a broken system if you are careless.

Reconfigure the packages, and update:

sudo dpkg --configure -a sudo apt-get update -y

Best of luck!



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有